import React from 'react';
import { NavLink, Route, Switch, Redirect } from 'react-router-dom';
import RouterView from '../router/index';

export default (props) => {
  console.log(props);
  return (
    <div>
      <li>
        <NavLink to='/home/home1'>home11111</NavLink>
      </li>
      <li>
        <NavLink to='/home/home2'>home22222</NavLink>
      </li>
      <RouterView routes={props.routes} />
    </div>
  );
};
